package top.codestudy.mylibrary;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class HelloActivity extends AppCompatActivity {

    static{
        System.loadLibrary("mylibrary");
    }

    private TextView mTvHello;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hello);
        mTvHello = findViewById(R.id.tv_hello);
        mTvHello.setText(get());
        set("我是成成");
    }


    public native String get();

    public native void set(String str);
}